<template>
  <div>
    <platform-index
      v-if="this.$store.getters.admin"></platform-index>
    <user-index v-else></user-index>
  </div>
</template>

<script>
import userIndex from "@/views/portal/site/components/userIndex";
import platformIndex from "@/views/portal/site/components/platformIndex";

export default {
  name: "index",
  components: {
    userIndex, platformIndex
  },
  data() {
    return {}
  },
  created() {

  }
}
</script>

<style scoped>

</style>
